package net.lzzy.practices.services;

import net.lzzy.practices.constants.Messages;
import net.lzzy.practices.entities.Course;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.UUID;

/**
 * @author liaodcc on 2022/5/19 8:27.
 */
public interface CourseService {
    List<Course> get();
    List<Course>get(boolean open);
    List<Course>get(int page, int size);
    List<Course>get(int page, int size, boolean open);
    Integer count();
    Integer count(boolean open);
    Course getById(UUID id);
    List<Course> getTeachersCourses(UUID teacherId);
    List<Course> getStudentsCourses(UUID studentId);
    Course add(Course course);
    Course update(Course course,String token);
    Course openCloseCourse(UUID id,boolean open,String token);
    Messages remove(UUID id, String token);
}
